namespace wMobinium.core.test
{
    [NUnit.Framework.TestFixture]
    public class TestAssemblyInfoTest
    {
        private string mockAssemblyPath = @"..\..\..\MockAssembly\outlookContacts.Tests\bin\Debug\";
        private string mockAssemblyName = @"OutlookContacts.Tests.dll";

        private TestAssemblyInfo testAssemblyInfo;

        [NUnit.Framework.Test]
        public void EnsureAssemblyIsLoaded()
        {
            testAssemblyInfo = new TestAssemblyInfo(mockAssemblyPath + mockAssemblyName);

            NUnit.Framework.Assert.AreEqual(mockAssemblyName.ToString(),
                                            testAssemblyInfo.assembly.ManifestModule.ToString());
            NUnit.Framework.Assert.IsTrue(testAssemblyInfo.TestClassInfos.Count > 0);
            NUnit.Framework.Assert.IsTrue(testAssemblyInfo.TestClassInfos[0].TestMethodInfos.Count > 0);
        }
    }
}